package com.neural.metric;

import java.util.List;

public class MaximumMetric extends Metric {

	public MaximumMetric() {
		super("maximum");
	}

	@Override
	public Double getValueFor(List<Double> distances) {
		Double value = distances.get(0);
		for (Double dist : distances) {
			if (value < dist) {
				value = dist;
			}
		}
		return value;
	}
}